package com.hanxiaozhang.system.service;

import com.hanxiaozhang.result.Result;
import com.hanxiaozhang.system.dto.MenuDTO;
import com.hanxiaozhang.system.dto.RouterDTO;
import com.hanxiaozhang.system.entity.MenuEntity;

import java.util.List;
import java.util.Map;

/**
 * 菜单表
 *
 * @author hanxiaozhang
 * @email hanxiaozhang2018@sina.com
 * @date 2021-03-30
 */
public interface MenuService {

	MenuEntity get(Long menuId);

	List<MenuDTO> list(Map<String, Object> map);

	int save(MenuDTO menu);

	int update(MenuDTO menu);

	Result remove(Long menuId, Long parentId);

	Result batchRemove(Long[] menuIds, Long[] parentIds);

	List<RouterDTO> listRouterByUserId(Long userId);

}

